<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/overlay.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css" type="text/css"?>

<!DOCTYPE bindings SYSTEM "chrome://zotero/locale/searchbox.dtd">

<window
	title="&zotero.search.search;"
	orient="vertical"
	onload="doLoad();"
	onunload="doUnload();"
	drawintitlebar-platforms="mac"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	xmlns:html="http://www.w3.org/1999/xhtml">
<dialog
	id="zotero-search-dialog"
	buttons="cancel,accept">

	<script>
		Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
		Services.scriptloader.loadSubScript("chrome://zotero/content/titlebar.js", this);
		Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
		Services.scriptloader.loadSubScript("chrome://zotero/content/searchDialog.js", this);
	</script>
	
	<popupset>
		<panel is="autocomplete-richlistbox-popup"
			id="search-autocomplete-popup"
			type="autocomplete-richlistbox"
			noautofocus="true"/>
	</popupset>
	
	<vbox id="zotero-search-box-container" flex="1">
		<hbox align="center">
			<label control="search-name" value="&zotero.search.name;"/>
			<html:input id="search-name" type="text" width="275" maxlength="80"/>
		</hbox>
		<zoterosearch id="search-box" flex="1"/>
	</vbox>
</dialog>
</window>
